Skip to contentSkip to conversation

amdgpu: xterm scrollback buffer disappears while paging up/down

Bug 110214 [email protected] 1 participant 114 messages Mar 21, 2019 – Aug 8, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=110214

Bug ID: 110214
Summary: amdgpu: xterm scrollback buffer disappears while
paging up/down
Product: DRI
Version: XOrg git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

Whenever I run `dmesg' on a xterm that uses the following options:

xterm -fa "DejaVu Sans Mono:style=Book:antialias=true" -fs 9

and I scroll up with the keyboard (shift+page up) parts of the scrollback buffer disappears, making it difficult to read the output.

I've tested other terminals (urxvt and alacritty) and I cannot trigger the bug with these terminals, with xterm it happens only with xft and with the options I mentioned above.

Steps to reproduce:

- run `xterm -fa "DejaVu Sans Mono:style=Book:antialias=true" -fs 9'
- run `dmesg', hit enter and page up

You should notice parts of the buffer disappearing.

I use the modesetting DDX driver, I also tried the xf86-video-amdgpu DDX driver and I can reproduce it with both, however, when setting Option "Accel" "off" in /etc/X11/xorg.conf.d/20-amdgpu.conf I cannot reproduce it anymore.

Actual Results:

As mentioned, the scrollback buffer disappears when paging up with these xterm options that I mentioned above.

Expected Results:

xterm works normally with these options, with no scrollback buffer issues.

System details:

- Arch Linux (x86_64)
- linux 5.0.2-arch1-1-ARCH
- xorg-server 1.20.4-1
- i3-wm 4.16.1-1
- xterm 344-1
- mesa 19.0.0-1

My machine is a "AMD Ryzen 5 2400G with Radeon Vega Graphics" APU with integrated vega graphics.

$ lspci | grep VGA
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raven
Ridge [Radeon Vega Series / Radeon Vega Mobile Series] (rev c6)
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=110214

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Product|DRI                         |Mesa
          Component|DRM/AMDgpu                  |Drivers/Gallium/radeonsi
            Version|XOrg git                    |19.0
         QA Contact|                            |[email protected]
                   |                            |.org

--- Comment #1 from Michel Dänzer <[email protected]> ---
Please attach the corresponding Xorg log file and output of glxinfo and dmesg.

I can't seem to reproduce this, and I'm not sure what exactly "parts of the scrollback buffer disappear" means. Maybe you can make a screencast or screenshots demonstrating the problem?

Anyway, this is more likely an issue between glamor and Mesa than in the kernel driver. Reassigning to Mesa for now, as glamor issues are no longer tracked here.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #2 from Diego Viola <[email protected]> --- Created attachment 143749
--> https://bugs.freedesktop.org/attachment.cgi?id=143749&action=edit
Screencast demonstrating the problem

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #3 from Diego Viola <[email protected]> --- Created attachment 143750
--> https://bugs.freedesktop.org/attachment.cgi?id=143750&action=edit
Xorg.0.log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #4 from Diego Viola <[email protected]> --- Created attachment 143751
--> https://bugs.freedesktop.org/attachment.cgi?id=143751&action=edit
glxinfo

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #5 from Diego Viola <[email protected]> --- Created attachment 143752
--> https://bugs.freedesktop.org/attachment.cgi?id=143752&action=edit
dmesg

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

Diego Viola <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

           Hardware|Other                       |x86-64 (AMD64)
                 OS|All                         |Linux (All)
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #6 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #1)

Quoted 2 lines

Please attach the corresponding Xorg log file and output of glxinfo and dmesg.

Done.

Quoted 4 lines

I can't seem to reproduce this, and I'm not sure what exactly "parts of the scrollback buffer disappear" means. Maybe you can make a screencast or screenshots demonstrating the problem?

By that I mean the actual text/output disappears after I do shift+page up, but it doesn't if I scroll with the mouse wheel or if I use the scrollbar.

I've attached a video demonstrating the issue, please let me know if you need more info.

Thanks.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #7 from Diego Viola <[email protected]> --- (In reply to Diego Viola from comment #6)

Quoted 7 lines

(In reply to Michel Dänzer from comment #1)

Quoted 2 lines

Please attach the corresponding Xorg log file and output of glxinfo and dmesg.

Done.

Quoted 1 line
Quoted 6 lines
Quoted 3 lines

I can't seem to reproduce this, and I'm not sure what exactly "parts of the scrollback buffer disappear" means. Maybe you can make a screencast or screenshots demonstrating the problem?

By that I mean the actual text/output disappears after I do shift+page up, but it doesn't if I scroll with the mouse wheel or if I use the scrollbar.

That was wrong, using the scrollbar also causes the same effect as using shift+page up (disappearing text).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #8 from Diego Viola <[email protected]> ---
I've compiled mesa from git and the issue is still there, I also tried older releases like 18.3, 18.2 and the issue remains.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #9 from Diego Viola <[email protected]> ---
I also get the same issue if I run xterm from sway/weston (via xwayland).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #10 from Diego Viola <[email protected]> --- My issue looks quite similar to this one:

https://bugs.openbsd.narkive.com/N7A1v1Cw/colored-text-disappears-in-xterm

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #11 from Diego Viola <[email protected]> --- Tried mesa git (19.1.0-devel) with LLVM 9.0.0 (SVN) and the issue still persists.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #12 from Diego Viola <[email protected]> ---
I also tried recompiling xorg-server (git and 1.20.0) and the problem still persists with those, I can't compile older releases anymore due to compile time errors.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #14 from Diego Viola <[email protected]> --- I can't reproduce the issue if I startx with LIBGL_ALWAYS_SOFTWARE=1.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #15 from Michel Dänzer <[email protected]> --- (In reply to Diego Viola from comment #14)

Quoted 1 line

I can't reproduce the issue if I startx with LIBGL_ALWAYS_SOFTWARE=1.

How exactly did you set that? Normally, I'd expect it to only affect clients, not the X server.

Are you using a compositing manager?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #16 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #15)

Quoted 7 lines

(In reply to Diego Viola from comment #14)

Quoted 1 line

I can't reproduce the issue if I startx with LIBGL_ALWAYS_SOFTWARE=1.

How exactly did you set that? Normally, I'd expect it to only affect clients, not the X server.

Are you using a compositing manager?

In my TT1:

export LIBGL_ALWAYS_SOFTWARE=1

then startx after that.

When I'm on X, I open an xterm and LIBGL_ALWAYS_SOFTWARE=1 will be set, glxinfo also reports llvmpipe.

I'm using i3-wm, no I don't use a compositing manager.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#19 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #18 from Diego Viola <[email protected]> ---
I tried running xcompmgr just to see if it makes a difference and it doesn't, I can still reproduce the bug when xcompmgr is running.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#20 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #19 from Michel Dänzer <[email protected]> --- (In reply to Diego Viola from comment #12)

Quoted 2 lines

I also tried recompiling xorg-server (git and 1.20.0) and the problem still persists with those, [...]

Did you build xserver with meson or autotools?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#21 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #20 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #19)

Quoted 5 lines

(In reply to Diego Viola from comment #12)

Quoted 2 lines

I also tried recompiling xorg-server (git and 1.20.0) and the problem still persists with those, [...]

Did you build xserver with meson or autotools?

autotools

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#22 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #21 from Diego Viola <[email protected]> ---
BTW, I'm not sure if it's related, but I also started seeing some artifacts with GTK windows (GIMP and LibreOffice), items such as "Help" (in GtkMenuItem) will disappear, then they re-appear until I click in one of them.

The same is also true for the text in the menus itself.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#24 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #23 from Diego Viola <[email protected]> --- When starting X with LIBGL_ALWAYS_SOFTWARE=1 the rendering issues with GIMP also goes away.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#25 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #24 from Diego Viola <[email protected]> ---
I've bisected the issue with the GTK elements sometimes disappearing, and the commit that causes the issue is this one:

1b25d340b791ad8350bdfb27f1a91ac79fa17748 is the first bad commit

Sadly my xterm is still affected but I can confirm this commit causes the issue with the GTK windows, going back to the previous commit fixes the issue with the invisible element in GIMP.

Does it shed any light for my original issue (invisible output in xterm)?

Sorry for mixing things up.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#26 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #25 from Michel Dänzer <[email protected]> ---
Just to make sure, you always restart the X server between building a Mesa commit and testing xterm against it, right? And you're making sure that the X server picks up your self-built radeonsi_dri.so for glamor?

If so, since that commit doesn't seem to affect the xterm issue, let's assume for now that it's separate. Please file a new report about the GTK issue, also against radeonsi, with the information from git bisect.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#27 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

Diego Viola <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|amdgpu: xterm scrollback    |radeonsi: xterm scrollback
                   |buffer disappears while     |buffer disappears while
                   |paging up/down              |paging up/down
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#28 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #26 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #25)

Quoted 3 lines

Just to make sure, you always restart the X server between building a Mesa commit and testing xterm against it, right? And you're making sure that the X server picks up your self-built radeonsi_dri.so for glamor?

Yes.

Quoted 4 lines

If so, since that commit doesn't seem to affect the xterm issue, let's assume for now that it's separate. Please file a new report about the GTK issue, also against radeonsi, with the information from git bisect.

OK.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#29 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #27 from Diego Viola <[email protected]> --- Actually, about your question:

Quoted 1 line

And you're making sure that the X server picks up your self-built radeonsi_dri.so for glamor?

I'm compiling Mesa in my home directory with the following configure switches:

./autogen.sh --enable-gles1 --enable-gles2 --enable-glx-tls --with-egl-platforms=x11,drm,wayland --with-dri-drivers=radeon --with-gallium-drivers=radeonsi --enable-debug --enable-autotools make -j8

export LD_LIBRARY_PATH=/home/diego/mesa/lib export LIBGL_DRIVERS_PATH=/home/diego/mesa/lib/gallium

So I assume this should make the X server pick the radeonsi_dri.so from /home/diego/mesa/lib/gallium right?

I looked at the ~/.local/share/xorg/Xorg.0.log but it's not so clear:

[   437.304] (II) modeset(0): [DRI2]   DRI driver: radeonsi
[   437.307] (II) AIGLX: Loaded and initialized radeonsi

Is there a way to verify beyond this which radeonsi driver it's using?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#30 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #28 from Diego Viola <[email protected]> ---
I guess I'll need to install mesa system wide to be really sure, I'll do that and confirm.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#31 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #29 from Diego Viola <[email protected]> --- OK, I was able to install Mesa system wide, glxinfo tells me this:

Mesa 19.0.0-devel (git-8daf5bb209)

Which is the commit prior to the bad commit I mentioned above.

Sadly xterm is still breaking as usual, the output disappears as I Shift+Page Up and nothing changed in that regard. :(

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#32 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #30 from Diego Viola <[email protected]> ---
I can reproduce this on Fedora 29 (workstation), I don't think the problem is Arch Linux specific.

- XTerm(334)
- Linux 5.0.4-200.fc29.x86_64
- GNOME Version 3.30.2
- xorg-x11-server-Xorg-1.20.4-1.fc29.x86_64

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#33 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #31 from Diego Viola <[email protected]> --- I can't reproduce it on Ubuntu 18.04.2 or 19.04 beta.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#34 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #32 from Michel Dänzer <[email protected]> --- (In reply to Diego Viola from comment #27)

Quoted 5 lines

export LD_LIBRARY_PATH=/home/diego/mesa/lib export LIBGL_DRIVERS_PATH=/home/diego/mesa/lib/gallium

So I assume this should make the X server pick the radeonsi_dri.so from /home/diego/mesa/lib/gallium right?

Doubtful, environment variables from the user shell aren't propagated to the Xorg process for me (which makes it very mysterious how LIBGL_ALWAYS_SOFTWARE=1 could make any difference...).

Quoted 1 line

Is there a way to verify beyond this which radeonsi driver it's using?

sudo lsof | grep radeonsi_dri.so

(In reply to Diego Viola from comment #29)

Quoted 6 lines

Mesa 19.0.0-devel (git-8daf5bb209)

Which is the commit prior to the bad commit I mentioned above.

Sadly xterm is still breaking as usual, the output disappears as I Shift+Page Up and nothing changed in that regard. :(

What if you install Mesa 18.3 system-wide?

(In reply to Diego Viola from comment #30)

Quoted 1 line

I can reproduce this on Fedora 29 (workstation), [...]

(In reply to Diego Viola from comment #31)

Quoted 1 line

I can't reproduce it on Ubuntu 18.04.2 or 19.04 beta.

Please attach the outputs of glxinfo from Fedora and Ubuntu.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#35 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #33 from Diego Viola <[email protected]> --- Created attachment 143829
--> https://bugs.freedesktop.org/attachment.cgi?id=143829&action=edit
glxinfo from Ubuntu 19.04 beta

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#36 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #34 from Diego Viola <[email protected]> --- Created attachment 143830
--> https://bugs.freedesktop.org/attachment.cgi?id=143830&action=edit
glxinfo from Ubuntu 18.04.2

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#37 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #35 from Diego Viola <[email protected]> --- Created attachment 143831
--> https://bugs.freedesktop.org/attachment.cgi?id=143831&action=edit
glxinfo from Fedora 29

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#38 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #36 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #32)

Quoted 7 lines

(In reply to Diego Viola from comment #27)

Quoted 5 lines

export LD_LIBRARY_PATH=/home/diego/mesa/lib export LIBGL_DRIVERS_PATH=/home/diego/mesa/lib/gallium

So I assume this should make the X server pick the radeonsi_dri.so from /home/diego/mesa/lib/gallium right?

Quoted 7 lines

Doubtful, environment variables from the user shell aren't propagated to the Xorg process for me (which makes it very mysterious how LIBGL_ALWAYS_SOFTWARE=1 could make any difference...).

Quoted 1 line

Is there a way to verify beyond this which radeonsi driver it's using?

sudo lsof | grep radeonsi_dri.so

Thanks.

Quoted 11 lines

(In reply to Diego Viola from comment #29)

Quoted 6 lines

Mesa 19.0.0-devel (git-8daf5bb209)

Which is the commit prior to the bad commit I mentioned above.

Sadly xterm is still breaking as usual, the output disappears as I Shift+Page Up and nothing changed in that regard. :(

What if you install Mesa 18.3 system-wide?

I'll try that.

Quoted 8 lines

(In reply to Diego Viola from comment #30)

Quoted 1 line

I can reproduce this on Fedora 29 (workstation), [...]

(In reply to Diego Viola from comment #31)

Quoted 1 line

I can't reproduce it on Ubuntu 18.04.2 or 19.04 beta.

Please attach the outputs of glxinfo from Fedora and Ubuntu.

Done.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#39 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #37 from Michel Dänzer <[email protected]> --- Hmm, Mesa was built against LLVM 7 in Arch & Fedora, against LLVM 8/9 in Ubuntu. Maybe this was an LLVM issue fixed in version 8?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#40 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #38 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #37)

Quoted 2 lines

Hmm, Mesa was built against LLVM 7 in Arch & Fedora, against LLVM 8/9 in Ubuntu. Maybe this was an LLVM issue fixed in version 8?

Unfortunately that's not the issue, llvm-libs 8.0.0 just landed on Arch Linux [extra] repository and the issue still persists.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#41 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #39 from Michel Dänzer <[email protected]> --- (In reply to Diego Viola from comment #38)

Quoted 2 lines

Unfortunately that's not the issue, llvm-libs 8.0.0 just landed on Arch Linux [extra] repository and the issue still persists.

Has Mesa been rebuilt against the new LLVM? Check the glxinfo output.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#42 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #40 from Diego Viola <[email protected]> --- Something really funny is going on.

I've compiled Mesa 18.3.0 and installed it system-wide and that works (xterm scrollback is fine with this).

I've compiled the latest Mesa git HEAD and installed that system-wide, this fails.

Bisect time.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

author Reviewed-by Eric Engestrom Reviewed-by Daniel Stone
#43 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #41 from Diego Viola <[email protected]> ---

$ git bisect good
6328536ff28ca26f2ad4e6f2c956c467acebda88 is the first bad commit
commit 6328536ff28ca26f2ad4e6f2c956c467acebda88
Author: Eric Anholt <[email protected]>
Date:   Fri Nov 2 14:35:06 2018 -0700

gbm: Introduce a helper function for printing GBM format names.

This requires that the caller make a little (stack) allocation to store the string.

v2: Use gbm_format_canonicalize (suggested by Daniel)

:040000 040000 033db8e2d54ead2f34691e6b8e234a06428381fd
50d5e1cbd57b488d0e24fd86787c611bf58bd588 M src

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#44 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #42 from Diego Viola <[email protected]> --- Created attachment 143832
--> https://bugs.freedesktop.org/attachment.cgi?id=143832&action=edit
git bisect log

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#45 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #43 from Daniel Stone <[email protected]> --- (In reply to Diego Viola from comment #41)

Quoted 11 lines
$ git bisect good
6328536ff28ca26f2ad4e6f2c956c467acebda88 is the first bad commit
commit 6328536ff28ca26f2ad4e6f2c956c467acebda88
Author: Eric Anholt <[email protected]>
Date:   Fri Nov 2 14:35:06 2018 -0700

gbm: Introduce a helper function for printing GBM format names.

This requires that the caller make a little (stack) allocation to store the string.

Quoted 7 lines

v2: Use gbm_format_canonicalize (suggested by Daniel)

:040000 040000 033db8e2d54ead2f34691e6b8e234a06428381fd
50d5e1cbd57b488d0e24fd86787c611bf58bd588 M src

I'm afraid this is a red herring: as you can see from looking at the commit, it simply adds new API with no actual user.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#46 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #44 from Diego Viola <[email protected]> --- (In reply to Daniel Stone from comment #43)

Quoted 14 lines

(In reply to Diego Viola from comment #41)

Quoted 13 lines
$ git bisect good
6328536ff28ca26f2ad4e6f2c956c467acebda88 is the first bad commit
commit 6328536ff28ca26f2ad4e6f2c956c467acebda88
Author: Eric Anholt <[email protected]>
Date:   Fri Nov 2 14:35:06 2018 -0700

gbm: Introduce a helper function for printing GBM format names.

This requires that the caller make a little (stack) allocation to store the string.

v2: Use gbm_format_canonicalize (suggested by Daniel)

Quoted 8 lines
Quoted 5 lines

:040000 040000 033db8e2d54ead2f34691e6b8e234a06428381fd
50d5e1cbd57b488d0e24fd86787c611bf58bd588 M src

I'm afraid this is a red herring: as you can see from looking at the commit, it simply adds new API with no actual user.

Are you sure? I've compiled the previous commit and that makes it work.

commit ee7f848c000112a98e9614f42921b176be473792 (HEAD)

Should I restart the git bisect?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#47 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #45 from Diego Viola <[email protected]> --- Created attachment 143833
--> https://bugs.freedesktop.org/attachment.cgi?id=143833&action=edit
glxinfo with LLVM 8.0.0

(In reply to Michel Dänzer from comment #39)

Quoted 5 lines

(In reply to Diego Viola from comment #38)

Quoted 2 lines

Unfortunately that's not the issue, llvm-libs 8.0.0 just landed on Arch Linux [extra] repository and the issue still persists.

Has Mesa been rebuilt against the new LLVM? Check the glxinfo output.

Here's the current glxinfo output with the stock mesa on Arch.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#48 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #46 from Diego Viola <[email protected]> ---
For some reason glxinfo reports mesa 19.0.0 (stock package on Arch) after I've installed mesa system-wide (18.3.0).

I didn't use a PKGBUILD and installed mesa by doing a `sudo make install'.

Maybe that's why the bisect went bad?

I know using a PKGBUILD is the right way to do it, but the last time I tried to use it I got some conflicts with libglvnd when I tried to replace the Arch Linux mesa package with the custom one.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#49 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #47 from Diego Viola <[email protected]> --- OK, this one is also weird, I've compiled mesa-18.3.0 in my home directory, exported these two variables:

export LD_LIBRARY_PATH=/home/diego/mesa/lib export LIBGL_DRIVERS_PATH=/home/diego/mesa/lib/gallium

I startx after that, glxinfo reports the right mesa version (18.3.0) and lsof says this:

$ sudo lsof | grep radeonsi_dri.so
[sudo] password for diego: 
Xorg      8082                  diego  mem       REG               0,22
84191168     322546 /home/diego/mesa/lib/gallium/radeonsi_dri.so
Xorg      8082 8083 Xorg:cs0    diego  mem       REG               0,22
84191168     322546 /home/diego/mesa/lib/gallium/radeonsi_dri.so
Xorg      8082 8084 Xorg:disk   diego  mem       REG               0,22
84191168     322546 /home/diego/mesa/lib/gallium/radeonsi_dri.so
Xorg      8082 8085 Xorg:sh0    diego  mem       REG               0,22
84191168     322546 /home/diego/mesa/lib/gallium/radeonsi_dri.so
Xorg      8082 8086 Xorg:sh1    diego  mem       REG               0,22
84191168     322546 /home/diego/mesa/lib/gallium/radeonsi_dri.so
Xorg      8082 8087 Xorg:sh2    diego  mem       REG               0,22
84191168     322546 /home/diego/mesa/lib/gallium/radeonsi_dri.so
Xorg      8082 8088 Xorg:sh3    diego  mem       REG               0,22
84191168     322546 /home/diego/mesa/lib/gallium/radeonsi_dri.so
Xorg      8082 8089 Xorg:sh4    diego  mem       REG               0,22
84191168     322546 /home/diego/mesa/lib/gallium/radeonsi_dri.so
Xorg      8082 8090 Xorg:sh5    diego  mem       REG               0,22
84191168     322546 /home/diego/mesa/lib/gallium/radeonsi_dri.so
Xorg      8082 8091 Xorg:shlo   diego  mem       REG               0,22
84191168     322546 /home/diego/mesa/lib/gallium/radeonsi_dri.so
Xorg      8082 8092 Xorg:shlo   diego  mem       REG               0,22
84191168     322546 /home/diego/mesa/lib/gallium/radeonsi_dri.so
Xorg      8082 8093 Xorg:shlo   diego  mem       REG               0,22
84191168     322546 /home/diego/mesa/lib/gallium/radeonsi_dri.so
Xorg      8082 8094 Xorg:shlo   diego  mem       REG               0,22
84191168     322546 /home/diego/mesa/lib/gallium/radeonsi_dri.so
Xorg      8082 8095 Xorg:gdrv   diego  mem       REG               0,22
84191168     322546 /home/diego/mesa/lib/gallium/radeonsi_dri.so

But then I cannot reproduce the bug anymore.

Any ideas?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#50 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #48 from Diego Viola <[email protected]> --- Created attachment 143834
--> https://bugs.freedesktop.org/attachment.cgi?id=143834&action=edit
Xephyr.trace

Here is an apitrace to reproduce the bug, I used this:

export MESA_EXTENSION_OVERRIDE="-GL_ARB_buffer_storage" apitrace trace /usr/bin/Xephyr -glamor :1 -screen 1024x768

As described here: https://github.com/apitrace/apitrace/wiki/Glamor

I can replay it with either of those commands:

eglretrace -w Xephyr.trace

or

glretrace -w Xephyr.trace

This was iive's suggestion (thanks).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#51 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #49 from Diego Viola <[email protected]> --- apitrace replay -w Xephyr.trace also seems to work.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#52 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #50 from Diego Viola <[email protected]> --- I can reproduce the issue with apitrace on Ubuntu 19.04.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#53 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #51 from Michel Dänzer <[email protected]> --- (In reply to Diego Viola from comment #46)

Quoted 1 line

Maybe that's why the bisect went bad?

That's likely one reason at least. At this point it's probably best if you double-check everything before testing anything. :)

(In reply to Diego Viola from comment #47)

Quoted 1 line

But then I cannot reproduce the bug anymore.

The working hypothesis is that it's a Mesa regression between 18.3 and 19.0, so that makes sense?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#54 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #52 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #51)

Quoted 5 lines

(In reply to Diego Viola from comment #46)

Quoted 1 line

Maybe that's why the bisect went bad?

That's likely one reason at least. At this point it's probably best if you double-check everything before testing anything. :)

Sure, sorry about any possible false-positives that I might have provided by accident.

Quoted 6 lines

(In reply to Diego Viola from comment #47)

Quoted 1 line

But then I cannot reproduce the bug anymore.

The working hypothesis is that it's a Mesa regression between 18.3 and 19.0, so that makes sense?

Yes, is there any more info that I can provide that you think would be useful?

Thanks.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#55 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #53 from Michel Dänzer <[email protected]> ---
It's probably worth trying git bisect again, double-checking at each step that you're testing the right thing.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#56 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #54 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #53)

Quoted 2 lines

It's probably worth trying git bisect again, double-checking at each step that you're testing the right thing.

Sure, I think my attempt from #c47 should have allowed me to reproduce the problem, I wonder why that failed.

I will try again.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#57 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #55 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #53)

Quoted 2 lines

It's probably worth trying git bisect again, double-checking at each step that you're testing the right thing.

I tried again and I can't get to replace the system mesa with my own build because of some conflicts with libglvnd, and when I compile mesa in my home directory and export LD_LIBRARY_PATH and LIBGL_DRIVERS_PATH to my mesa build, glxinfo reports the right version of mesa and links to the libGL from my build, but lsof shows the libGL from libglvnd is being used.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#58 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #56 from Diego Viola <[email protected]> --- Here's more or less what I'm currently seeing:

$ ldd /usr/bin/glxinfo | grep libGL
        libGL.so.1 => /home/diego/mesa/lib/libGL.so.1 (0x00007fbaac886000)
$ ls -l /home/diego/mesa/lib/libGL.so.1
lrwxrwxrwx 2 diego diego 14 Apr  2 00:03 /home/diego/mesa/lib/libGL.so.1 ->
libGL.so.1.2.0
$ sudo lsof | grep libGL.so
[sudo] password for diego: 
Xorg       4873                  diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       4873 4874 Xorg:cs0    diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       4873 4875 Xorg:disk   diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       4873 4876 Xorg:sh0    diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       4873 4877 Xorg:sh1    diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       4873 4878 Xorg:sh2    diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       4873 4879 Xorg:sh3    diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       4873 4880 Xorg:sh4    diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       4873 4881 Xorg:sh5    diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       4873 4882 Xorg:shlo   diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       4873 4883 Xorg:shlo   diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       4873 4884 Xorg:shlo   diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       4873 4885 Xorg:shlo   diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       4873 4886 Xorg:gdrv   diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       5520                  diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       5520 5521 Xorg:cs0    diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       5520 5522 Xorg:disk   diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       5520 5523 Xorg:sh0    diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       5520 5524 Xorg:sh1    diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       5520 5525 Xorg:sh2    diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       5520 5526 Xorg:sh3    diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       5520 5527 Xorg:sh4    diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       5520 5528 Xorg:sh5    diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       5520 5529 Xorg:shlo   diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       5520 5530 Xorg:shlo   diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       5520 5531 Xorg:shlo   diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       5520 5532 Xorg:shlo   diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
Xorg       5520 5533 Xorg:gdrv   diego  mem       REG               0,22  
591624     438107 /usr/lib/libGL.so.1.7.0
$ pacman -Qo /usr/lib/libGL.so.1.7.0 
/usr/lib/libGL.so.1.7.0 is owned by libglvnd 1.1.1-1

This is after I startx with LD_LIBRARY_PATH and LIBGL_DRIVERS_PATH pointing to my mesa build.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#59 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #57 from Diego Viola <[email protected]> ---
I contacted Thomas Dickey (maintainer of xterm) and he said this about the issue:

drivers, or Xorg in general -

for instance the parts painting by XCopyArea
(used by xterm and some other applications)
may not be getting repainting-events

https://lists.cairographics.org/archives/cairo/2015-May/026284.html

or buggy acceleration features

https://invisible-island.net/xterm/xterm.faq.html#compiz_bugs

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#60 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #58 from Diego Viola <[email protected]> --- I restarted the bisect and ended up at the same "bad commit":

6328536ff28ca26f2ad4e6f2c956c467acebda88 is the first bad commit

I wonder what I'm doing wrong...

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#61 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #59 from Diego Viola <[email protected]> --- If I do this:

$ git revert -n 6328536ff28ca26f2ad4e6f2c956c467acebda88
$ git revert -n 621b0fa8922ade0a8122b868177308e65e6d3595

Then xterm works fine and I still have direct rendering.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#62 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while paging up/down

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #60 from Diego Viola <[email protected]> --- Used clang to compile the latest mesa git master and it made no difference.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#63 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

Diego Viola <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|radeonsi: xterm scrollback  |radeonsi: xterm scrollback
                   |buffer disappears while     |buffer disappears while
                   |paging up/down              |Shift+PgUp and PgDn
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#64 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #61 from Diego Viola <[email protected]> ---
I just want to retract myself from saying these commits caused the problem for me, sorry about that.

As suggested by MrCooper, I've compiled/installed mesa to /usr/local and added /usr/local/lib to /etc/ld.so.conf.d/mesa.conf to override the system mesa.

We found that xterm still has the issue with Mesa 18.3.0.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#65 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #62 from Diego Viola <[email protected]> --- We found quite a few things during our research:

export MESA_EXTENSION_OVERRIDE="-GL_NV_texture_barrier"

This helps alleviate the problem (xterm does not have the issue with this), however, the problem is still present in Xephyr.

We tested Xephyr from the current git master down to Xephyr from xserver 1.16 and the problem is also present, however, setting the following environment variable:

export R600_DEBUG=nodpbb

Makes the issue disappear entirely.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#66 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Version|19.0 |git

--- Comment #63 from Michel Dänzer <[email protected]> --- (In reply to Diego Viola from comment #62)

Quoted 4 lines

export MESA_EXTENSION_OVERRIDE="-GL_NV_texture_barrier"

This helps alleviate the problem (xterm does not have the issue with this), however, the problem is still present in Xephyr.

To clarify, you mean Xephyr from xserver 1.16 here (where glamor didn't make use of GL_NV_texture_barrier yet), disabling GL_NV_texture_barrier helps with current Xephyr, right?

It seems like DPBB needs to be disabled when glTextureBarrier(NV) is called, otherwise primitives may be reordered across the barrier. Does that make sense, Marek?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#67 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #64 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #63)

Quoted 9 lines

(In reply to Diego Viola from comment #62)

Quoted 4 lines

export MESA_EXTENSION_OVERRIDE="-GL_NV_texture_barrier"

This helps alleviate the problem (xterm does not have the issue with this), however, the problem is still present in Xephyr.

To clarify, you mean Xephyr from xserver 1.16 here (where glamor didn't make use of GL_NV_texture_barrier yet), disabling GL_NV_texture_barrier helps with current Xephyr, right?

Yes, that's correct.

If I set export MESA_EXTENSION_OVERRIDE="-GL_NV_texture_barrier" before running startx, xterm works fine either in X or Xephyr (from git master).

Quoted 4 lines

It seems like DPBB needs to be disabled when glTextureBarrier(NV) is called, otherwise primitives may be reordered across the barrier. Does that make sense, Marek?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#68 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #65 from Diego Viola <[email protected]> --- Just to make it a bit more clear:

If I set that environment variable while I'm already on X:

export MESA_EXTENSION_OVERRIDE="-GL_NV_texture_barrier"

It has no effect on Xephyr (from current git master), i.e. xterm still shows the bug.

However, if I set before startx.

It works with both, X and Xephyr (from git master), i.e. xterm works fine.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#69 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #66 from Diego Viola <[email protected]> --- (In reply to Diego Viola from comment #65)

Quoted 8 lines

Just to make it a bit more clear:

If I set that environment variable while I'm already on X:

export MESA_EXTENSION_OVERRIDE="-GL_NV_texture_barrier"

It has no effect on Xephyr (from current git master), i.e. xterm still shows the bug.

xterm still shows the bug in Xephyr from git if that environment was set later (while X was running).

Works fine with both (Xephyr git and X) if the environment variable was set before startx.

Please let me know if you have more questions.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#70 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #67 from Marek Olšák <[email protected]> --- (In reply to Michel Dänzer from comment #63)

Quoted 6 lines

(In reply to Diego Viola from comment #62)

Quoted 4 lines

export MESA_EXTENSION_OVERRIDE="-GL_NV_texture_barrier"

This helps alleviate the problem (xterm does not have the issue with this), however, the problem is still present in Xephyr.

Quoted 7 lines

To clarify, you mean Xephyr from xserver 1.16 here (where glamor didn't make use of GL_NV_texture_barrier yet), disabling GL_NV_texture_barrier helps with current Xephyr, right?

It seems like DPBB needs to be disabled when glTextureBarrier(NV) is called, otherwise primitives may be reordered across the barrier. Does that make sense, Marek?

Primitives aren't reordered with DPBB. Primitives can't also survive a barrier with DPBB. DPBB has no effect on behavior, it just changes how PS wavefronts are formed.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#71 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #68 from Michel Dänzer <[email protected]> --- (In reply to Diego Viola from comment #65)

Quoted 1 line

If I set that environment variable while I'm already on X:

By "X" I assume you mean Xorg here?

Quoted 4 lines

export MESA_EXTENSION_OVERRIDE="-GL_NV_texture_barrier"

It has no effect on Xephyr (from current git master), i.e. xterm still shows the bug.

Did you set the variable before starting Xephyr though, so it was set in the Xephyr process? If yes, that makes things confusing again, just when it seemed like they were starting to make sense...

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#72 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #69 from Michel Dänzer <[email protected]> --- (In reply to Marek Olšák from comment #67)

Quoted 3 lines

Primitives aren't reordered with DPBB. Primitives can't also survive a barrier with DPBB. DPBB has no effect on behavior, it just changes how PS wavefronts are formed.

Is there any way that could affect the glamor shader which samples from one area of a buffer and draws to another (non-overlapping) area of the same buffer?

What is the reason for radeonsi disabling DPBB for blits?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#73 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #70 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #68)

Quoted 4 lines

(In reply to Diego Viola from comment #65)

Quoted 1 line

If I set that environment variable while I'm already on X:

By "X" I assume you mean Xorg here?

Yes, Xorg.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#74 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #71 from Marek Olšák <[email protected]> --- (In reply to Michel Dänzer from comment #69)

Quoted 8 lines

(In reply to Marek Olšák from comment #67)

Quoted 3 lines

Primitives aren't reordered with DPBB. Primitives can't also survive a barrier with DPBB. DPBB has no effect on behavior, it just changes how PS wavefronts are formed.

Is there any way that could affect the glamor shader which samples from one area of a buffer and draws to another (non-overlapping) area of the same buffer?

As long as the blits are truly non-overlapping, DPBB doesn't affect it.

Quoted 2 lines

What is the reason for radeonsi disabling DPBB for blits?

because it's not useful for blits and it might add latency because of binning.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#75 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #72 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #51)

Quoted 2 lines

The working hypothesis is that it's a Mesa regression between 18.3 and 19.0, so that makes sense?

That was a mistake from my part, sorry.

Setting 'export MESA_EXTENSION_OVERRIDE="-GL_ARB_buffer_storage"' after startx still makes xterm work fine even after startx (from a running Xorg session).

Sorry for the confusion.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#76 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #73 from Diego Viola <[email protected]> --- Sorry for the confusing comments.

export MESA_EXTENSION_OVERRIDE="-GL_NV_texture_barrier" makes xterm always work with Xpehyr git, no matter if I set that variable before or after startx.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#77 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #74 from Diego Viola <[email protected]> --- (In reply to Diego Viola from comment #65)

Quoted 8 lines

Just to make it a bit more clear:

If I set that environment variable while I'm already on X:

export MESA_EXTENSION_OVERRIDE="-GL_NV_texture_barrier"

It has no effect on Xephyr (from current git master), i.e. xterm still shows the bug.

This comment is completely wrong, ignore it.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#78 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #75 from Diego Viola <[email protected]> --- (In reply to Diego Viola from comment #72)

Quoted 11 lines

(In reply to Michel Dänzer from comment #51)

Quoted 2 lines

The working hypothesis is that it's a Mesa regression between 18.3 and 19.0, so that makes sense?

That was a mistake from my part, sorry.

Setting 'export MESA_EXTENSION_OVERRIDE="-GL_ARB_buffer_storage"' after startx still makes xterm work fine even after startx (from a running Xorg session).

Sorry for the confusion.

Replied to the wrong comment, this was supposed to be a reply to #68.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#79 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #76 from Michel Dänzer <[email protected]> --- (In reply to Diego Viola from comment #24)

Quoted 4 lines

I've bisected the issue with the GTK elements sometimes disappearing, and the commit that causes the issue is this one:

1b25d340b791ad8350bdfb27f1a91ac79fa17748 is the first bad commit

Can you double-check this with Xephyr, taking everything we've learned since then into account, and if the same commit is identified again, file a new report about it?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#80 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #77 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #76)

Quoted 9 lines

(In reply to Diego Viola from comment #24)

Quoted 4 lines

I've bisected the issue with the GTK elements sometimes disappearing, and the commit that causes the issue is this one:

1b25d340b791ad8350bdfb27f1a91ac79fa17748 is the first bad commit

Can you double-check this with Xephyr, taking everything we've learned since then into account, and if the same commit is identified again, file a new report about it?

Sure thing.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#81 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

Diego Viola <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|radeonsi: xterm scrollback  |radeonsi: xterm scrollback
                   |buffer disappears while     |buffer disappears while
                   |Shift+PgUp and PgDn         |Shift+PgUp and Shift+PgDn
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#82 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #78 from Diego Viola <[email protected]> --- Created attachment 143956
--> https://bugs.freedesktop.org/attachment.cgi?id=143956&action=edit
clinfo -A output

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#83 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #79 from Diego Viola <[email protected]> --- I found that a workaround for this issue is to add the following to my Xresources:

XTerm.vt100.scaleHeight: 0.9

The default is 1.0 (which creates the problem), a value of 1.5 also makes it work (although fonts look too wide then).

I found this information here:

https://savannah.nongnu.org/bugs/index.php?52165
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880407

Which might indicate this being a freetype problem?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#84 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #80 from Michel Dänzer <[email protected]> --- (In reply to Diego Viola from comment #79)

Quoted 1 line

Which might indicate this being a freetype problem?

No. If it was a FreeType problem, R600_DEBUG=nodpbb or MESA_EXTENSION_OVERRIDE="-GL_NV_texture_barrier" couldn't work around it.

Changing the xterm configuration just happens to avoid the problem somehow.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#85 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #81 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #80)

Quoted 7 lines

(In reply to Diego Viola from comment #79)

Quoted 1 line

Which might indicate this being a freetype problem?

No. If it was a FreeType problem, R600_DEBUG=nodpbb or MESA_EXTENSION_OVERRIDE="-GL_NV_texture_barrier" couldn't work around it.

Changing the xterm configuration just happens to avoid the problem somehow.

Makes sense, thanks.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#86 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #82 from Diego Viola <[email protected]> ---
I found that I can't reproduce this bug with Xephyr -glamor_gles2 (git) but it still happens with -glamor.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#87 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #83 from Michel Dänzer <[email protected]> --- (In reply to Diego Viola from comment #82)

Quoted 2 lines

I found that I can't reproduce this bug with Xephyr -glamor_gles2 (git) but it still happens with -glamor.

Presumably the GL_NV_texture_barrier extension isn't available with GLES2, so this is the same as disabling that extension with OpenGL.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#88 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #84 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #83)

Quoted 6 lines

(In reply to Diego Viola from comment #82)

Quoted 2 lines

I found that I can't reproduce this bug with Xephyr -glamor_gles2 (git) but it still happens with -glamor.

Presumably the GL_NV_texture_barrier extension isn't available with GLES2, so this is the same as disabling that extension with OpenGL.

Makes sense, thanks.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#89 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #85 from Diego Viola <[email protected]> --- Created attachment 144054
--> https://bugs.freedesktop.org/attachment.cgi?id=144054&action=edit
xterm exhibiting the bug

xterm exhibiting the bug after running "dmesg" and hitting Shift+PgUp.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#90 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #86 from Diego Viola <[email protected]> --- I found another workaround.

Edit xterm's util.c and change line 2161:

unsigned int h = (unsigned) (nlines * FontHeight(screen));

to:

unsigned int h = (unsigned) (1000);

i.e. increasing the h variable to a large enough number makes it work for some reason.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#91 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #87 from [email protected] ---
I have the same bug with xterm and shift+paging.

Another similar bug.
xfce4-terminal leaves a large black area at the bottom when it renders 'dmesg' or 'cat /etc/passwd'.

AMD Ryzen 3 2200G.
Arch Linux.
Mesa 19.0.3-1

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#92 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #88 from Diego Viola <[email protected]> --- (In reply to komqinxit from comment #87)

Quoted 7 lines

Another similar bug.
xfce4-terminal leaves a large black area at the bottom when it renders 'dmesg' or 'cat /etc/passwd'.

AMD Ryzen 3 2200G.
Arch Linux.
Mesa 19.0.3-1

I can reproduce this, it happens for me with xfce4-terminal and also gnome-terminal and most other VTE-based terminals.

I also noticed that setting R600_DEBUG=nodpbb and MESA_EXTENSION_OVERRIDE="-GL_NV_texture_barrier" does not seem to help.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#93 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #89 from [email protected] ---
Created attachment 144187
--> https://bugs.freedesktop.org/attachment.cgi?id=144187&action=edit
Bug in Geany

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#94 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #90 from [email protected] ---
Created attachment 144188
--> https://bugs.freedesktop.org/attachment.cgi?id=144188&action=edit
Geany without a bug

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#95 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #91 from [email protected] ---
xfce4-terminal and Geany bugs seem to be this
https://bugs.freedesktop.org/show_bug.cgi?id=110355 and solved with mesa 19.0.4.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#96 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #92 from Diego Viola <[email protected]> --- (In reply to komqinxit from comment #91)

Quoted 3 lines

xfce4-terminal and Geany bugs seem to be this
https://bugs.freedesktop.org/show_bug.cgi?id=110355 and solved with mesa 19.0.4.

That's good to know, thanks.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#97 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #93 from Diego Viola <[email protected]> ---
I just tried to reproduce this issue (xterm bug) with sway today and noticed that I can't reproduce it under sway.

The bug can still be reproduced with weston and i3.

- sway 1.0-8
- xorg-server-xwayland 1.20.4-1
- mesa 19.0.4-1

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#98 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #94 from Diego Viola <[email protected]> --- This bug is still present with mesa 19.1.0-1.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#99 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #95 from Diego Viola <[email protected]> --- Still a problem with linux 5.2.0-arch2-1-ARCH and mesa 19.1.2-1.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#100 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #96 from Diego Viola <[email protected]> --- Created attachment 144786
--> https://bugs.freedesktop.org/attachment.cgi?id=144786&action=edit
Yet another workaround (patch) for xterm

Replacing FontHeight for VDrawable seems to help.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#101 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #97 from Diego Viola <[email protected]> --- s/for/with/

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#102 lore raw

[Bug 110214] radeonsi: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #98 from Diego Viola <[email protected]> --- (In reply to Diego Viola from comment #96)

Quoted 4 lines

Created attachment 144786 [details]
Yet another workaround (patch) for xterm

Replacing FontHeight for VDrawable seems to help.

VDrawable is just a big number, so same thing as Comment 86.

Nevermind.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#103 lore raw

[Bug 110214] Raven Ridge: xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

Diego Viola <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|radeonsi: xterm scrollback  |Raven Ridge: xterm
                   |buffer disappears while     |scrollback buffer
                   |Shift+PgUp and Shift+PgDn   |disappears while Shift+PgUp
                   |                            |and Shift+PgDn
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#104 lore raw

[Bug 110214] Raven Ridge (2400G): xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

Diego Viola <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|Raven Ridge: xterm          |Raven Ridge (2400G): xterm
                   |scrollback buffer           |scrollback buffer
                   |disappears while Shift+PgUp |disappears while Shift+PgUp
                   |and Shift+PgDn              |and Shift+PgDn
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#105 lore raw

[Bug 110214] Raven Ridge (2400G): xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #99 from Michel Dänzer <[email protected]> ---
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1554 has some fixes for DPBB, might help for this as well.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#106 lore raw

[Bug 110214] Raven Ridge (2400G): xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #100 from Diego Viola <[email protected]> --- (In reply to Michel Dänzer from comment #99)

Quoted 2 lines

https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1554 has some fixes for DPBB, might help for this as well.

Unfortunately it doesn't help, I compiled mesa to /usr/local (from his dpbb_fixes branch) but the issue is still there.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#107 lore raw

[Bug 110214] Raven Ridge (2400G): xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #101 from Pierre-Eric Pelloux-Prayer <[email protected]> --- Created attachment 144948
--> https://bugs.freedesktop.org/attachment.cgi?id=144948&action=edit
comparison screenshot

It looks like a DPBB/scissor interation issue.

The screenshot on the left is a replay of a faulty trace with dpbb disabled. On the right the same trace, at the same point but using dpbb.

The last executed commands are:
glScissor(3, 3, 480, 144); glDrawArraysInstanced(GL_TRIANGLE_STRIP, 0, 4, 1);

As you can see, the purple area on the right doesn't honor the defined scissor area.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#108 lore raw

[Bug 110214] Raven Ridge (2400G): xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #102 from Pierre-Eric Pelloux-Prayer <[email protected]> --- (In reply to Diego Viola from comment #100)

Quoted 6 lines

(In reply to Michel Dänzer from comment #99)

Quoted 2 lines

https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1554 has some fixes for DPBB, might help for this as well.

Unfortunately it doesn't help, I compiled mesa to /usr/local (from his dpbb_fixes branch) but the issue is still there.

I just pushed a new commit on the same MR
(https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1554/diffs?commit_id=d25df1274ea48fa73b0d8b31558e2cebb0851015).

Could you test on your machine and let me know if it helps?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#109 lore raw

[Bug 110214] Raven Ridge (2400G): xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #103 from Diego Viola <[email protected]> --- (In reply to Pierre-Eric Pelloux-Prayer from comment #102)

Quoted 5 lines

(In reply to Diego Viola from comment #100)

Quoted 4 lines

(In reply to Michel Dänzer from comment #99)

Quoted 2 lines

https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1554 has some fixes for DPBB, might help for this as well.

Quoted 8 lines
Quoted 2 lines

Unfortunately it doesn't help, I compiled mesa to /usr/local (from his dpbb_fixes branch) but the issue is still there.

I just pushed a new commit on the same MR
(https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1554/
diffs?commit_id=d25df1274ea48fa73b0d8b31558e2cebb0851015).

Could you test on your machine and let me know if it helps?

I can confirm that your new commit fixes the problem. Thank you very much! :D

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#110 lore raw

[Bug 110214] Raven Ridge (2400G): xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #104 from Pierre-Eric Pelloux-Prayer <[email protected]> --- (In reply to Diego Viola from comment #103)

Quoted 9 lines

(In reply to Pierre-Eric Pelloux-Prayer from comment #102)

Quoted 8 lines

(In reply to Diego Viola from comment #100)

Quoted 6 lines

(In reply to Michel Dänzer from comment #99)

Quoted 2 lines

https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1554 has some fixes for DPBB, might help for this as well.

Unfortunately it doesn't help, I compiled mesa to /usr/local (from his dpbb_fixes branch) but the issue is still there.

Quoted 7 lines
Quoted 5 lines

I just pushed a new commit on the same MR
(https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1554/
diffs?commit_id=d25df1274ea48fa73b0d8b31558e2cebb0851015).

Could you test on your machine and let me know if it helps?

I can confirm that your new commit fixes the problem. Thank you very much! :D

Thanks for the confirmation.
I added a Tested-by tag to the commit.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#111 lore raw

[Bug 110214] Raven Ridge (2400G): xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #105 from Pierre-Eric Pelloux-Prayer <[email protected]> --- The commit fixing this issue has changed a bit, it would be great if you could confirm the latest version of the MR works well for you.

Thanks!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#112 lore raw

[Bug 110214] Raven Ridge (2400G): xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

--- Comment #106 from Diego Viola <[email protected]> --- (In reply to Pierre-Eric Pelloux-Prayer from comment #105)

Quoted 4 lines

The commit fixing this issue has changed a bit, it would be great if you could confirm the latest version of the MR works well for you.

Thanks!

Yes, I can confirm it's working great with the latest version. Thank you!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#113 lore raw

[Bug 110214] Raven Ridge (2400G): xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=110214

Pierre-Eric Pelloux-Prayer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #107 from Pierre-Eric Pelloux-Prayer <[email protected]> --- The MR has been merged.

Thanks again for reporting the bug and helping fixing it!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel